OS: Windows Server 2008 SP2.
MS SQL Server 10.0.1600.22
I am the administrator of the computer and of the SQL Server, also the owner of the database.
I have installed a local Publication.
For whatever reason I need to delete it from this server.
I tried with right-click Delete and with Disable Publishing and Distribution. The same result:
TITLE: Microsoft.SqlServer.ConnectionInfo
SQL Server could not disable publishing and distribution on <computer-name>\<sqlServerName>.
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.
Changed database context to 'master'. (Microsoft SQL Server, Error: 15517)
I also tried:
exec sp_removedbreplication N'<sqlServerName>'
exec sp_droppublication @publication = N'<sqlServerName>'
exec sp_changedbowner @loginame = 'sa'
What exactly is the meaning of: because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission. ?
Because in fact dbo exists and my account has dbo permissions.
Thank you very much,
Dan